import request from "@/utils/request"
import { LoginType } from "../Login/services"

export interface LoginParams {
  username: string
  password: string
  loginType: LoginType
}

export async function login(params: LoginParams) {
  return request<LoginResult>('/app/manager/login', {
    data: params,
  })
}
